package cn.edu.xmu.javaee.productdemoaop.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
import java.util.Optional;
import cn.edu.xmu.javaee.productdemoaop.repository.entity.Productjpa;

public interface ProductRepository extends JpaRepository<Productjpa, Long>  {
    List<Productjpa> findAllByName(String name);
    List<Productjpa> findAllByProductIdAndIdNot(Long productId, Long id);
    List<Productjpa> findAllByGoodsIdAndIdNot(Long goodsId, Long id);
}
